package org.dromara.business.request;

import jakarta.validation.constraints.DecimalMin;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.math.BigDecimal;

@Data
public class StakingRequest {

    private Long userId;

    @NotNull(message = "产品ID不能为空")
    private Long productId;

    @NotNull(message = "质押金额不能为空")
    @DecimalMin(value = "0.01", message = "质押金额必须大于0")
    private BigDecimal amount;

    @NotEmpty(message = "交易HASH不能为空")
    private String transactionHash;
}
